/-Dom
/-boot ...
BootController.ts
BootLayout.ts
StorageLoader.ts
boot.ts
/-build
/-docs
/-dom
/-editor
/-files
/-files-old
/-imports
/-layout
/-storage
/-storage/attached
/-storage/attached/api
/-storage/attached/dom
DetectStorage.ts
LoadStorage.ts
UpdateStorage.ts
/-storage/attached/indexedDB
/-storage/attached/localStorage
/-storage/attached/webSQL
/-tests
/-typings
Dom.ts
TypeScriptService.ts
functions.ts
ko.ts
nteapo.html
persistence.api.ts
persistence.ts
shell.ts
teapo.html
teapo.ts
try.html
try.js
xxxxxxxxxx
79
//           if (evt.preventDefault) evt.preventDefault();
80
//           if ('cancelBubble' in evt) evt.cancelBubble = true;
81
//         }
82
//       });
83
    }
84
85
    private _checkLayoutAdded() {
86
      if (!this._layoutAdded) {
87
        if (document.body) {
88
          document.body.appendChild(this._layout.container);
89
          this._layoutAdded = true;
90
        }
91
      }
92
    }
93
94
    private _startLoadingStorage() {
95
96
      if (!this._storageElem) {
97
        this.reportError('No data embedded in this file.');
98
        this._storageElem = this.dom.createElement('div', { display: 'none' }, this.dom.documenOverride.body);
99
      }
100
101
      var uniqueKey = this._getUniqueKey();
102
103
      this._storageLoader = new StorageLoader(this.dom, this._storageElem, uniqueKey);
104
      this._storageLoader.loadStorage({
105
        detectionComplete: (domTime, persistence) => this._storageDetectionComplete(domTime, persistence),
106
        loadProgress: (totalFileCount, lastLoadedFileName) => this._storageLoadProgress(totalFileCount, lastLoadedFileName),
107
        loadComplete: () => this._storageLoaded()
108
      });
109
      
110
    }
111
112
    private _storageDetectionComplete(domTime: Date, persistence: { name: string; time: Date; }) {
113
      
114
    }
115
116
    private _storageLoadProgress(totalFileCount: number, lastLoadedFileName: string) {
117
      
118
    }
119
120
    private _storageLoaded() {
121
      
122
    }
123
124
    private _getUniqueKey() {
125
      var key = window.location.pathname;
126
127
      key = key.split('?')[0];
128
      key = key.split('#')[0];
129
130
      key = key.toLowerCase();
131
132
      var ignoreSuffix = '/index.html';
133
134
      if (key.length > ignoreSuffix.length && key.slice(key.length - ignoreSuffix.length) === ignoreSuffix)
135
        key = key.slice(0, key.length - ignoreSuffix.length);
136
137
      key += '*';
138
139
      return key;
140
    }
141
142
  }
143
144
}
115:32 method (totalFileCount: number, lastLoadedFileName: string): void